﻿using System.ComponentModel.DataAnnotations;

namespace SageKing.OpenIddict.UI.Identity.Api;

public class LoginParamsType
{

    [Required(ErrorMessage = "账号不能为空"), MinLength(5, ErrorMessage = "账号不能少于5个字符")]
    public string UserName { get; set; }


    [Required(ErrorMessage = "密码不能为空"), MinLength(6, ErrorMessage = "密码不能少于6个字符")] 
    public string Password { get; set; }

    public string Mobile { get; set; }

    public string Captcha { get; set; }

    public string LoginType { get; set; }

    public bool AutoLogin { get; set; }
}